package com.ruoyi.project.common.feedback.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.common.feedback.mapper.DictFeedbackMapper;
import com.ruoyi.project.common.feedback.domain.DictFeedback;
import com.ruoyi.project.common.feedback.service.IDictFeedbackService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 意见反馈Service业务层处理
 * 
 * @author shixiangwen
 * @date 2022-03-03
 */
@Service
public class DictFeedbackServiceImpl implements IDictFeedbackService 
{
    @Autowired
    private DictFeedbackMapper dictFeedbackMapper;

    /**
     * 查询意见反馈
     * 
     * @param id 意见反馈ID
     * @return 意见反馈
     */
    @Override
    public DictFeedback selectDictFeedbackById(Long id)
    {
        return dictFeedbackMapper.selectDictFeedbackById(id);
    }

    /**
     * 查询意见反馈列表
     * 
     * @param dictFeedback 意见反馈
     * @return 意见反馈
     */
    @Override
    public List<DictFeedback> selectDictFeedbackList(DictFeedback dictFeedback)
    {
        return dictFeedbackMapper.selectDictFeedbackList(dictFeedback);
    }

    /**
     * 新增意见反馈
     * 
     * @param dictFeedback 意见反馈
     * @return 结果
     */
    @Override
    public int insertDictFeedback(DictFeedback dictFeedback)
    {
        return dictFeedbackMapper.insertDictFeedback(dictFeedback);
    }

    /**
     * 修改意见反馈
     * 
     * @param dictFeedback 意见反馈
     * @return 结果
     */
    @Override
    public int updateDictFeedback(DictFeedback dictFeedback)
    {
        return dictFeedbackMapper.updateDictFeedback(dictFeedback);
    }

    /**
     * 删除意见反馈对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteDictFeedbackByIds(String ids)
    {
        return dictFeedbackMapper.deleteDictFeedbackByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除意见反馈信息
     * 
     * @param id 意见反馈ID
     * @return 结果
     */
    @Override
    public int deleteDictFeedbackById(Long id)
    {
        return dictFeedbackMapper.deleteDictFeedbackById(id);
    }
}
